package com.awakening.o2o.dao;

import com.awakening.o2o.entity.ProductSellDaily;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @Author:AwakeningCode
 * @Date: Created in 9:59 2018\2\4 0004
 */
public interface ProductSellDailyDao {

    /**
     * 根据查询条件返回商品日销量的统计列表
     * @param productSellDailyCondition
     * @param beginTime
     * @param endTime
     * @return
     */
    List<ProductSellDaily> queryProductSellDailyList(@Param("productSellDailyCondition") ProductSellDaily productSellDailyCondition,
                                                     @Param("beginTime") Date beginTime,@Param("endTime") Date endTime);

    /**
     * 统计平台所有商品的日销量
     * @return
     */
    int insertProductSellDaily();
}
